import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: '/', component: {
            render() {
                return ''
            }
        }
    },
    {
        path: '/:page', component: () => import('../View.vue'), props: true
    }
]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes
})

export default router